const router = require('koa-router')()
const util = require('../utils/util')

router.post('/getImgPath', async (ctx) => {
  try {
    console.log(1);
    const res = ctx.request.files.file
    console.log(res);

    ctx.body = util.success(res)
  } catch (error) {
    console.log(error);
    ctx.body = util.fail(error);
  }
})

module.exports = router
